Optimal. Leaf size=93 \[ -\frac{a 2^{\frac{p}{2}+\frac{3}{2}} (\sin (c+d x)+1)^{\frac{1}{2} (-p-1)} (e \cos (c+d x))^{p+1} \, _2F_1\left (\frac{1}{2} (-p-1),\frac{p+1}{2};\frac{p+3}{2};\frac{1}{2} (1-\sin (c+d x))\right )}{d e (p+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0568303, antiderivative size = 93, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.095, Rules used = {2688, 69} \[ -\frac{a 2^{\frac{p}{2}+\frac{3}{2}} (\sin (c+d x)+1)^{\frac{1}{2} (-p-1)} (e \cos (c+d x))^{p+1} \, _2F_1\left (\frac{1}{2} (-p-1),\frac{p+1}{2};\frac{p+3}{2};\frac{1}{2} (1-\sin (c+d x))\right )}{d e (p+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2688
Rule 69
Rubi steps
\begin{align*} \int (e \cos (c+d x))^p (a+a \sin (c+d x)) \, dx &=\frac{\left (a (e \cos (c+d x))^{1+p} (1-\sin (c+d x))^{\frac{1}{2} (-1-p)} (1+\sin (c+d x))^{\frac{1}{2} (-1-p)}\right ) \operatorname{Subst}\left (\int (1-x)^{\frac{1}{2} (-1+p)} (1+x)^{1+\frac{1}{2} (-1+p)} \, dx,x,\sin (c+d x)\right )}{d e}\\ &=-\frac{2^{\frac{3}{2}+\frac{p}{2}} a (e \cos (c+d x))^{1+p} \, _2F_1\left (\frac{1}{2} (-1-p),\frac{1+p}{2};\frac{3+p}{2};\frac{1}{2} (1-\sin (c+d x))\right ) (1+\sin (c+d x))^{\frac{1}{2} (-1-p)}}{d e (1+p)}\\ \end{align*}
Mathematica [C] time = 1.34029, size = 245, normalized size = 2.63 \[ -\frac{i a 2^{-p-1} \left (e^{-i (c+d x)} \left (1+e^{2 i (c+d x)}\right )\right )^{p+1} (\sin (c+d x)+1) \left ((p+1) e^{i (c+d x)} \left (i p e^{i (c+d x)} \, _2F_1\left (1,\frac{p+3}{2};\frac{3-p}{2};-e^{2 i (c+d x)}\right )-2 (p-1) \, _2F_1\left (1,\frac{p+2}{2};1-\frac{p}{2};-e^{2 i (c+d x)}\right )\right )-i (p-1) p \, _2F_1\left (1,\frac{p+1}{2};\frac{1-p}{2};-e^{2 i (c+d x)}\right )\right ) \cos ^{-p}(c+d x) (e \cos (c+d x))^p}{d (p-1) p (p+1) \left (\sin \left (\frac{1}{2} (c+d x)\right )+\cos \left (\frac{1}{2} (c+d x)\right )\right )^2} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.907, size = 0, normalized size = 0. \begin{align*} \int \left ( e\cos \left ( dx+c \right ) \right ) ^{p} \left ( a+a\sin \left ( dx+c \right ) \right ) \, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sin \left (d x + c\right ) + a\right )} \left (e \cos \left (d x + c\right )\right )^{p}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (a \sin \left (d x + c\right ) + a\right )} \left (e \cos \left (d x + c\right )\right )^{p}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} a \left (\int \left (e \cos{\left (c + d x \right )}\right )^{p}\, dx + \int \left (e \cos{\left (c + d x \right )}\right )^{p} \sin{\left (c + d x \right )}\, dx\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sin \left (d x + c\right ) + a\right )} \left (e \cos \left (d x + c\right )\right )^{p}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]